package com.dhkj.circle.ui.dialog;

import android.view.View;
import android.widget.TextView;

import com.dhkj.circle.R;

import butterknife.BindView;
import butterknife.OnClick;

public class ZMWXOkDialog extends BaseDialog {
    private RefundDialogListener mShoppingCartDialogListener;

    @BindView(R.id.tv_msg)
    TextView tv_msg;

    @Override
    protected void init() {
        tv_msg.setText("充值完成");
    }

    @OnClick({R.id.tv_ok, R.id.tv_cancel})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_ok:
                if (mShoppingCartDialogListener != null) {
                    mShoppingCartDialogListener.clear();
                }
                dismiss();
                break;
            case R.id.tv_cancel:
//                dismiss();
                break;
        }
    }

    @Override
    public float setAlpha() {
        return 0.4f;
    }





    @Override
    protected int getLayoutId() {
        return R.layout.dialog_login;
    }


    public void setShoppingCartDialogListener(RefundDialogListener shoppingCartDialogListener) {
        mShoppingCartDialogListener = shoppingCartDialogListener;
    }

    public interface RefundDialogListener {

        void clear();

    }
}
